package com.gitee.mango.web.controller.login;

import com.gitee.mango.api.vo.ResVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 用户名 密码方式的登录/登出的入口
 * @author: breeze
 * @Date: 2024-07-29
 */
@RestController
@RequestMapping
public class LoginController {

    @PostMapping("/login")
    public ResVo login(@RequestParam(name = "username") String username, @RequestParam(name = "password") String password) {
        String token = "123123";
        return ResVo.ok(token);
    }
}
